package nml.mail.reg.smtp;


import nml.mail.reg.Reg;

import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.htmlunit.HtmlUnitDriver;
import org.openqa.selenium.ie.InternetExplorerDriver;

public class  china_com_cn extends Reg{

	public void reg(String username, String password) {		


		String url = "http://mail.china.com.cn/cgi-bin/signup.cgi?show=signin";
		get(url);
		
		dr.findElement(By.name("truename")).sendKeys(username);
		dr.findElement(By.name("username")).sendKeys(username);
		
		
		dr.findElement(By.name("question")).sendKeys("answer");
		dr.findElement(By.name("answer")).sendKeys("answer");

		
		dr.findElement(By.name("password")).sendKeys(password);
		dr.findElement(By.name("repassword")).sendKeys(password);
		
 	
		dr.findElement(By.name("verifynum")).click();
		
 		
	}

	public static void main(String[] args) {
		new china_com_cn().reg("aa1798654", "qq3131798654");
	}
	
	
}

